.topnav #app {
  $sideBarWidth: 0px;

  .logo_text {
    line-height: 50px;
    color: #ccd9ee;
    letter-spacing: 2px;
    padding-left: 0px;
  }

  .navbar {
    background-color: #0444ad;
    height: 110px;
    background: $menuBg url(~@/assets/bk_img/topnav.png) repeat-x top;

    .logo {
      float: left;
      width: 47px;
      height: 50px;
      background: url(~@/assets/admin/logo.png) no-repeat center;
      margin-right: 0px;
      margin-left: 10px;
      background-size: 80% auto;
    }
  }
  @media only screen and (max-width: 1024px) {
    .logo_text {
       font-size: 22px;
    }
      .navbar {
      
        .logo {
          float: left;
          width: 47px;
          height: 50px;
          background: url(~@/assets/admin/logo.png) no-repeat center;
          margin-right: 0px;
          margin-left: 5px;
          background-size: 80% auto;
        }
      }
    
  
  }
  .fixed-header+.app-main {
    padding-top: 100px;
  }

  .hasTagsView {
    .fixed-header+.app-main {
      padding-top: 110px +34px;
    }
  }

  .main-container {
    height: calc(100% - 110px);
    transition: margin-left .28s;
    margin-left: 0px;
    position: relative;
    top: 110px;
  }
  // @media only screen and (max-width: 1024px) {

  //   .main-container {
  //     height: calc(100% - 82px);
  //     transition: margin-left .28s;
  //     margin-left: 0px;
  //     position: relative;
  //     top: 82px;
  //   }
  // }

  .topbar-container {
    transition: width 0.28s;
    width: auto !important;
    // background-color: $menuBg;
    background-color: transparent;
    height: 75px;
    position: fixed;
    font-size: 0px;
    top: 10px;
    bottom: 0;
    left: 320px;
    z-index: 68;
    overflow: hidden;

    @media only screen and (max-width: 1366px) {
      left: 330px;
    }
    @media only screen and (max-width: 1024px) {
      left: 300px;
    }
    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 75px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: auto;
      padding: 0 0px;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 4px;
      width: 1.3em;
      height: 1.3em;
      vertical-align: middle;
      display: none;
    }

    .el-menu {
      border: none;
      height: 40px;
      width: auto !important;
      position: fixed;
      z-index: 66;
      background-color: transparent !important;

      div {
        display: inline-block;
        float: left;
        position: relative;

        .el-menu-item {
          height: 40px;
          line-height: 40px;
          font-size: 16px;
          padding: 0 16px !important;
          background-color: transparent !important;
        }

        @media only screen and (max-width: 1366px) {
          .el-menu-item {
            height: 40px;
            line-height: 40px;
            font-size: 15px;
            padding: 0 10px !important;
          }

        }
        @media only screen and (max-width: 1024px) {
          .el-menu-item {
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            padding: 0 4px !important;
          }

        }

        a.router-link-exact-active.router-link-active .el-menu-item.is-active {
          padding-left: 16px !important;
          color: $subMenuActiveText;
          background-color: transparent !important;
          border-bottom: 3px #eac226 solid !important;
          border-left-width: 0px;
        }

        li.el-menu-item.is-active {
          color: #f9db03 !important;
          // border-bottom: 0px solid #fcd022 !important;
          // height: 30px !important;
        }
      }

      .el-submenu {
        position: relative;
        margin: 0 4px;
        
        .el-menu.el-menu--inline {
          height: 60px;
          top: 50px;
          position: fixed;
          z-index: 66;
          left: 0px;
          right: 0px;
          width: auto;
          padding-left: 10px;
          background-color: #1966e2 !important;

          .el-menu-item {
            height: 50px;
            line-height: 15px;
            font-size: 13px;
            padding: 4px 10px !important;
            color: #d3dce6 !important;
            border: 1px solid #135ed6;
            border-radius: 4px;
            margin: 5px 4px;
            vertical-align: middle;
            // max-width: 100px;
            white-space: normal;
            text-align: center;
            &.groupEnd{ margin-right: 20px; position: relative;
              &::after {
                content: "";
                position: absolute;
                right: -14px;
                top: -6px;
                height: 59px;
                width: 2px;
                background: url(~@/assets/bk_img/jiangex.png) no-repeat right center;}
            }


            & .svg-icon {
              display: block;
              margin: 0 auto;
              width: 24px;
              height: 22px;

            }
            //  @media only screen and (max-width: 1024px) {
            //   & .svg-icon {
            //     display: none;
            //   }
            //  }
            & span {
              line-height: 20px;
            }

            // & :hover,
            // &.is-active {
            //   color: #fff !important;
            // }
          }
        }
        // @media only screen and (max-width: 1024px) {
        //   .el-menu.el-menu--inline {
        //     height: 30px;
        //     top: 50px;
        //     position: fixed;
        //     z-index: 66;
        //     left: 0px;
        //     right: 0px;
        //     width: auto;
        //     padding-left: 10px;
        //     background-color: #1966e2 !important;
  
        //     .el-menu-item {
        //       height: 24px;
        //       line-height: 15px;
        //       font-size: 13px;
        //       padding: 1px 10px !important;
        //       color: #d3dce6 !important;
        //       border: 1px solid #135ed6;
        //       border-radius: 4px;
        //       margin: 4px 4px;
        //       vertical-align: middle;
             
        //       white-space: normal;
        //       text-align: center;
        //       &.groupEnd{ margin-right: 20px; position: relative;
        //         &::after {
        //           content: "";
        //           position: absolute;
        //           right: -14px;
        //           top: -4px;
        //           height: 28px;
        //           width: 2px;
        //           }
        //       }
  
  
        //       & .svg-icon {
        //         display: block;
        //         margin: 0 auto;
        //         width: 24px;
        //         height: 22px;
  
        //       }
        //        @media only screen and (max-width: 1024px) {
        //         & .svg-icon {
        //           display: none;
        //         }
        //        }
        //       & span {
        //         line-height: 20px;
        //       }
  
        //     }
        //   }
          

        // }
        .el-submenu__title {
          height: 40px;
          line-height: 40px;
          font-size: 16px;
          border-radius: 4px 4px 0px 0px;
          padding: 0 16px !important;
          background-color: transparent !important;
          @media only screen and (max-width: 1024px) {
            padding: 0 6px !important;
          }
          &:hover {
            background-color: #1a69e744 !important;
          }
        }

        @media only screen and (max-width: 1366px) {
          .el-menu.el-menu--inline {
            padding-left: 10px;

            .el-menu-item {
              font-size: 13px;

            }
          }

          .el-submenu__title {
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            padding: 0 10px;
          }

        }
      }

      .el-submenu.is-opened {
        .el-submenu__title {
          background-color: #1966e2 !important;
          border-radius: 4px 4px 0px 0px;
          padding-left: 16px !important;
          @media only screen and (max-width: 1024px) {padding-left: 6px !important;}

        }

      }


      .el-submenu__title i {
        display: none;
        color: #bfcbd9;
      }

      // menu hover
      .submenu-title-noDropdown,
      .el-submenu__title {
        &:hover {
          background-color: $menuHover !important;
        }
      }

      .is-active>.el-submenu__title {
        color: #fff !important;
        // border-bottom:2px #fcd022 solid !important; height: 50px !important;
      }

      & .nest-menu .el-submenu>.el-submenu__title,
      & .el-submenu .el-menu-item {
        min-width: $sideBarWidth !important;
        // background-color: $subMenuBg !important;
        background-color: transparent !important;

      }
    }

    .el-submenu {
      .el-menu.el-menu--inline {
        .el-menu-item {
          &.is-active {
            border: 1px solid #0a51c5 !important;
            color: #fff !important;
            background-color: #0f5cd7 !important;
          }

          &:hover {
            background-color: #0444ad47 !important;
            border: 1px solid #0d51c1 !important;
            color: #fff !important;
          }

        }
      }
    }
  }

  .is-active>.el-submenu__title & .el-submenu .el-menu-item //  暂时隐藏掉根据屏幕大小变化左侧导航布局
  // .hideSidebar {
  //   .sidebar-container {
  //     width: 54px !important;
  //   }

  //   .main-container {
  //     margin-left: 54px;
  //   }

  //   .submenu-title-noDropdown {
  //     padding: 0 !important;
  //     position: relative;

  //     .el-tooltip {
  //       padding: 0 !important;

  //       .svg-icon {
  //         margin-left: 20px;
  //       }
  //     }
  //   }

  //   .el-submenu {
  //     overflow: hidden;

  //     &>.el-submenu__title {
  //       padding: 0 !important;

  //       .svg-icon {
  //         margin-left: 20px;
  //       }
  //       i{ color: #fff;}

  //       .el-submenu__icon-arrow {
  //         display: none;
  //       }
  //     }
  //   }
  //   .el-menu--collapse {
  //     .el-submenu {
  //       &>.el-submenu__title {
  //         &>span {
  //           height: 0;
  //           width: 0;
  //           overflow: hidden;
  //           visibility: hidden;
  //           display: inline-block;
  //         }
  //       }
  //     }
  //   }
  // }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive// 暂时隐藏掉根据屏幕大小变化左侧导航布局
  // .mobile {
  //   .main-container {
  //     margin-left: 0px;
  //   }

  //   .sidebar-container {
  //     transition: transform .28s;
  //     width: $sideBarWidth !important;
  //   }

  //   &.hideSidebar {
  //     .sidebar-container {
  //       pointer-events: none;
  //       transition-duration: 0.3s;
  //       transform: translate3d(-$sideBarWidth, 0, 0);
  //     }
  //   }
  // }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}


@media only screen and (max-width: 1024){
  .topnav #app {

  .navbar {
    height: 30px !important;
    .logo {
      float: left;
      width: 47px;
      height: 50px;
      background: url(~@/assets/admin/logo.png) no-repeat center;
      margin-right: 0px;
      margin-left: 10px;
      background-size: 80% auto;
    }
  }
 }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

// @media only screen and (max-width: 1700px){
//   #app{
//   .topbar-container { 
//     .el-menu-item {
//     height: 60px;
//     line-height: 60px; font-size: 14px; padding: 0 10px;
//     }
//     .el-menu .el-submenu .el-submenu__title {
//       height: 60px;
//       line-height: 60px;
//       font-size: 14px;
//       padding: 0 10px;
//   }
//   }
// } 
// }
.topnav #app .hideSidebar {
  .el-submenu>.el-submenu__title {
    padding: 0 16px !important;
  }

  .submenu-title-noDropdown {
    padding: 0px 16px !important;
  }

  .el-submenu>.el-submenu__title .svg-icon {
    margin-left: 0px;
  }
}

u {
  text-decoration: none;
}

.topnav #app.singlemenu{
    $topnavHeight: 52px;
    $mainContainer:calc(100% - 52px);
    $sideBarWidth: 0px;
    .main-container {
      height: $mainContainer;
      transition: margin-left .28s;
      margin-left: $sideBarWidth;
      position: relative;
      top: $topnavHeight;
    }
    .navbar {
      height: $topnavHeight;
   }
  }


